package api.Impl;

import api.PaymentStrategy;

// 具体策略实现 - 信用卡支付
public class CreditCardPayment implements PaymentStrategy {
    private String cardNumber;

    public CreditCardPayment(String cardNumber) {
        this.cardNumber = cardNumber;
    }

    @Override
    public void pay(int amount) {
        System.out.println("信用卡支付, 交易金额 " + amount + " 使用的卡号: " + cardNumber);
    }
}
